#[cfg(test)]
use std::io::{BufWriter, stdout};
#[cfg(test)]
use ferris_says::say;
/**
 * say_hello
 * 1. 通过pub(crate)关键字，将say_hello函数设置为私有函数
 * 
 */
#[cfg(test)]
pub(crate) fn say_hello() {
    let stdout = stdout();
    // let message = String::from("Hello fellow Rustaceans!");
    let message = String::from("Hello  Big Old , ChengP!");
    let width = message.chars().count();

    let mut writer = BufWriter::new(stdout.lock());
    say(&message, width, &mut writer).unwrap();
}